package com.Ajava1704.for并发包下的类.threadLocal;

/**
 * 作者: LCG
 * 日期: 2020/6/24 00:21
 * 描述:
 */
public class TestUtils {

    ThreadLocal<UUU> threadLocal=new ThreadLocal<>();

    public UUU getUser(){

        if(threadLocal.get()==null){
            UUU uuu=new UUU("4444");
            threadLocal.set(uuu);
            return uuu;
        }else{
            return threadLocal.get();
        }

    }


}
